<template>
  <div class="meishi-xiangqing">
    <div class="xiangqing-header">
      <!--<router-link :to="{name: 'shouye/muying'}">-->
      <img @click="Back()" class="back" src="../../assets/img/shouye/header-xinpin/back.png" />
      <!--</router-link>-->
      <p>健康美味兼得的布尔本</p>
      <img @click="isFX = true" class="share" src="../../assets/img/shouye/header-xinpin/share.png" />
    </div>
    <img src="../../assets/img/shouye/shouye-meishi/jiankangbuerben.png"/>
    <p>
      日本著名糕点品牌Bourbon布尔本，成立于1924年，
      是日本零食十强之一。制作的曲奇和糕点系列，品质
      远胜于欧洲传统西点，做工研究、精致、高贵、时尚、
      健康是Bourbon一贯的严谨作风，其北日本系列礼盒
      更是夺得了销售冠军，相当受欢迎。
    </p>
    <ul class="shangpin-ul">
      <li>
        <div>
          <img src="../../assets/img/shouye/shouye-meishi/quqibinggantu.png" />
          <h3>
            <h4>最受欢迎曲奇礼盒系列</h4>
            <p>日本本土国内受欢迎的曲奇点心，浓浓
              的牛油味，饼干的酥脆和可可牛奶的美
              妙结合，咬下去，满满幸福感。礼盒装
              有三种不同口味，一盒里约54枚，布尔
              本家产品，礼盒包装无论是送人还是留
              着自己下午茶，都非常合适。</p>
          </h3>
        </div>
        <ul>
          <li>
            <ul class="list-ul">
              <li>
                <img src="../../assets/img/shouye/shouye-meishi/kitty.png"/>
                <p>BOURBON布尔本hello kitty
                  黄油曲奇礼盒54枚</p>
                <h5>￥12.90</h5>
                <h6>立即购买</h6>
              </li>
              <li>
                <img src="../../assets/img/shouye/shouye-meishi/kitty.png"/>
                <p>BOURBON布尔本hello kitty
                  黄油曲奇礼盒54枚</p>
                <h5>￥12.90</h5>
                <h6>立即购买</h6>
              </li>
            </ul>
          </li>
          <li>
            <ul class="list-ul">
              <li>
                <img src="../../assets/img/shouye/shouye-meishi/kitty.png"/>
                <p>BOURBON布尔本hello kitty
                  黄油曲奇礼盒54枚</p>
                <h5>￥12.90</h5>
                <h6>立即购买</h6>
              </li>
              <li>
                <img src="../../assets/img/shouye/shouye-meishi/kitty.png"/>
                <p>BOURBON布尔本hello kitty
                  黄油曲奇礼盒54枚</p>
                <h5>￥12.90</h5>
                <h6>立即购买</h6>
              </li>
            </ul>
          </li>
        </ul>
      </li>
      <li>
        <div>
          <img src="../../assets/img/shouye/shouye-meishi/quqibinggantu.png" height="360" width="220"/>
          <h3>
            <h4>最受欢迎曲奇礼盒系列</h4>
            <p>日本本土国内受欢迎的曲奇点心，浓浓
              的牛油味，饼干的酥脆和可可牛奶的美
              妙结合，咬下去，满满幸福感。礼盒装
              有三种不同口味，一盒里约54枚，布尔
              本家产品，礼盒包装无论是送人还是留
              着自己下午茶，都非常合适。</p>
          </h3>
        </div>
        <ul>
          <li>
            <ul class="list-ul">
              <li>
                <img src="../../assets/img/shouye/shouye-meishi/kitty.png" height="172" width="172"/>
                <p>BOURBON布尔本hello kitty
                  黄油曲奇礼盒54枚</p>
                <h5>￥12.90</h5>
                <h6>立即购买</h6>
              </li>
              <li>
                <img src="../../assets/img/shouye/shouye-meishi/kitty.png" height="172" width="172"/>
                <p>BOURBON布尔本hello kitty
                  黄油曲奇礼盒54枚</p>
                <h5>￥12.90</h5>
                <h6>立即购买</h6>
              </li>
            </ul>
          </li>
          <li>
            <ul class="list-ul">
              <li>
                <img src="../../assets/img/shouye/shouye-meishi/kitty.png" height="172" width="172"/>
                <p>BOURBON布尔本hello kitty
                  黄油曲奇礼盒54枚</p>
                <h5>￥12.90</h5>
                <h6>立即购买</h6>
              </li>
              <li>
                <img src="../../assets/img/shouye/shouye-meishi/kitty.png" height="172" width="172"/>
                <p>BOURBON布尔本hello kitty
                  黄油曲奇礼盒54枚</p>
                <h5>￥12.90</h5>
                <h6>立即购买</h6>
              </li>
            </ul>
          </li>
        </ul>
      </li>
    </ul>
    <div class="up" @click="toTop()" v-if="isUP">
      <img src="../../assets/img/shouye/tuijian-xuanliyanzhuang/toTop.png"/>
    </div>
    <div class="fenxiang-mengban" v-if="isFX">
      <div class="fenxiang">
        <ul>
          <li>
            <ul class="fenxiang-list">
              <li>
                <div>
                  <img src="../../assets/img/shouye/fenxiang/pengyouquan.png"/>
                </div>
                <p>微信朋友圈</p>
              </li>
              <li>
                <div>
                  <img src="../../assets/img/shouye/fenxiang/weixin.png" /></div>
                <p>微信好友</p>
              </li>
              <li>
                <div>
                  <img src="../../assets/img/shouye/fenxiang/QQ.png"/></div>
                <p>QQ好友</p>
              </li>
            </ul>
          </li>
          <li>
            <ul class="fenxiang-list">
              <li>
                <div>
                  <img src="../../assets/img/shouye/fenxiang/QQkongjian.png"/></div>
                <p>QQ空间</p>
              </li>
              <li>
                <div>
                  <img src="../../assets/img/shouye/fenxiang/weibo.png" /></div>
                <p>微博</p>
              </li>
              <li>
                <div>
                  <img src="../../assets/img/shouye/fenxiang/fuzhilianjie.png"/></div>
                <p>复制链接</p>
              </li>
            </ul>
          </li>
        </ul>
        <div @click="quxiao()">
          取消
        </div>
      </div>
    </div>
  </div>
</template>
<script>
  export default {
      data () {
        return {
          isUP: false,
          isFX: false
        }
      },
      mounted() {
          window.addEventListener('scroll', this.menu)
      },
      methods: {
        Back () {
          this.$router.go(-1)
        },
        toTop () {
          if(document.documentElement){
            document.documentElement.scrollTop = 0;
          }else{
            document.body.scrollTop = 0;
          }
        },
        menu() {
          this.scroll = document.documentElement.scrollTop || document.body.scrollTop;
          if(this.scroll > 0){
            //显示 a 标签
            this.isUP = true;
          }else{
            //隐藏 a 标签
            this.isUP = false;
          }
        },
        top () {
          window.scrollTo(0,0)
        },
        quxiao () {
          this.isFX = false
        }
      },
    created () {
      this.top();
    }
  }
</script>
<style scoped>
  .meishi-xiangqing {
    background: #f2f2f2;
    position: relative;
    width: 100%;
    padding-top: 2rem;
  }
  .meishi-xiangqing>img{
    width: 100%;
  }
  .meishi-xiangqing>p{
    padding: 0.5rem 0 0.5rem 0.5rem;
    font-family: MicrosoftYaHei;
    font-size: 0.7rem;
    font-weight: normal;
    font-stretch: normal;
    line-height: 1rem;
    letter-spacing: 0rem;
    color: #4d4d4d;
    background: #ffcd2c;
  }
  .xiangqing-header {
    width: 100%;
    height: 2rem;
    line-height: 2rem;
    background: #e53e42;
    position: fixed;
    top: 0;
    left: 0;
  }
  .back {
    vertical-align: middle;
    width: 0.6rem;
    margin-left: 0.5rem;
  }
  .xiangqing-header>p{
    width: 12.5rem;
    height: 100%;
    text-align: center;
    display: inline-block;
    font-family: MicrosoftYaHei;
    font-size: 0.7rem;
    font-weight: normal;
    font-stretch: normal;
    color: #ffffff;

  }
  .meishi-xiangqing .share {
    vertical-align: middle;
    width: 1rem;
  }
  .xiangqing-header ul {
    width: 4rem;
    height: 6rem;
    padding: 0 0.3rem;
    background: url("../../assets/img/shouye/header-qingdan/圆角矩形.png")no-repeat 0.1rem -0.1rem;
    /*background-position: 0 0;*/
    background-size: 3.5rem 6rem;
    position: absolute;
    top: 1.5rem;
    right: -0.5rem;
    z-index: 10;
  }
  .xiangqing-header ul li {
    height: 1.3rem;
  }
  .xiangqing-header ul li img {
    width: 0.6rem;
    height: 0.6rem;
    vertical-align: middle;
  }
  .xiangqing-header ul li span {
    font-family: MicrosoftYaHei;
    font-size: 0.5rem;
    font-weight: normal;
    font-stretch: normal;
    color: #4d4d4d;
  }
  .shangpin-ul {
    border-bottom: 1px solid #ccc;
    margin-bottom: 0.5rem;
  }
  .shangpin-ul>li div{
    width: 15rem;
    display: flex;
    background-color: #fdf3f1;
    padding: 0.5rem;
  }
  .shangpin-ul>li div img{
    padding: 0.2rem;
    width: 4.5rem;
    height: 8rem;
    background: #fff;
    display: inline-block;
  }
  .shangpin-ul>li div h3 {
    padding: 0.2rem;
    background: #fff;
    flex: 1;
  }
  .shangpin-ul>li div h3 h4{
    font-family: MicrosoftYaHei;
    font-size: 0.8rem;
    font-weight: normal;
    font-stretch: normal;
    line-height: 1rem;
    letter-spacing: 0rem;
    color: #4e1f1d;
    margin: 0.1rem 0;
  }
  .shangpin-ul>li div h3 p{
    font-family: MicrosoftYaHei;
    font-size: 0.6rem;
    font-weight: normal;
    font-stretch: normal;
    line-height: 1rem;
    letter-spacing: 0rem;
    color: #4d4d4d;
  }
  .meishi-xiangqing .list-ul {
    display: flex;
    padding: 0 0.5rem;
  }
  .meishi-xiangqing .list-ul li{
    flex: 1;
    text-align: center;
    border: 1px solid #ccc;
    margin: 0.4rem 0.2rem;
    background: #fff;
  }
  .meishi-xiangqing .list-ul li img{
    width: 3rem;
    height: 3rem;
    padding: 1rem;
  }
  .meishi-xiangqing .list-ul li p {
    border-top: 1px solid #ccc;
    padding: 0 0.5rem;
    font-family: SimHei;
    font-size: 0.5rem;
    font-weight: normal;
    font-stretch: normal;
    color: #000000;
  }
  .meishi-xiangqing .list-ul li h5 {
    font-family: SimHei;
    font-size: 0.6rem;
    font-weight: normal;
    font-stretch: normal;
    color: #e83d41;
  }
  .meishi-xiangqing .list-ul li h6 {
    margin: 0.2rem auto;
    width: 5rem;
    background-color: #e53e42;
    border-radius: 0.5rem;
  }
  .up {
    width: 1.5rem;
    position: fixed;
    bottom: 0;
    right: 0.3rem;
  }
  .up img {
    width: 100%;
  }
  .fenxiang-mengban {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    background: rgba(0,0,0,0.5);
  }
  .fenxiang {
    padding-top: 1rem;
    background: #fff;
    width: 100%;
    height: 10rem;
    position: absolute;
    bottom: 0;
    left: 0;
  }
  .fenxiang-list {
    display: flex;
  }
  .fenxiang-list li {
    flex: 1;
    text-align: center;
  }
  .fenxiang-list div {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0.5rem auto;
  }
  .fenxiang-list div img {
    width: 100%;
  }
  .fenxiang-list p {
    font-size: 0.6rem;
    font-weight: normal;
    font-stretch: normal;
    color: #4d4d4d;
  }
  .fenxiang>div {
    font-size: 0.6rem;
    font-weight: normal;
    font-stretch: normal;
    background: #e53e42;
    color: #fff;
    width: 3rem;
    text-align: center;
    padding: 0.2rem;
    border-radius: 0.2rem;
    margin: 0.5rem auto;
  }
</style>
